const gulp = require('gulp');
const browserSync = require('browser-sync');


gulp.task('html',function(){
    gulp.src('./dist/index.html')
    .pipe(browserSync.reload({stream:true}));
});



gulp.task('default',['html'],function(){
    /**自动开启浏览器，多屏共享**/
    browserSync.init({
        server: {
            baseDir: './dist'
        },
        open: false    //关闭自动打开浏览器
    });

    gulp.watch('./dist/index.html',['html']);
})